﻿/*
 * Created by SharpDevelop.
 * User: Matjaž
 * Date: 8.1.2009
 * Time: 17:14
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Windows.Forms;

namespace gopher
{
	/// <summary>
	/// Description of urlForm.
	/// </summary>
	public partial class urlForm : Form
	{
		public string url = "";
		public urlForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		void OkButtonClick(object sender, EventArgs e)
		{ 
			url = addressBox.Text;
		}
		
		void UrlFormHelpRequested(object sender, HelpEventArgs hlpevent)
		{
			Help.ShowHelp(this, Application.ExecutablePath.Substring(0, Application.ExecutablePath.LastIndexOf("\\"))+"\\Help\\gopher.chm", "html\\url-dialog.htm");
		}
	}
}
